package com.zjitc.service.Impl;

import com.zjitc.Model.User;
import com.zjitc.dao.UserDao;
import com.zjitc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Kochiya on 2018/3/20.
 */
@Service
public class UserServiceImp implements UserService {

  @Autowired
  private UserDao userDao;

  @Override
  public List<User> findAll() {
    return userDao.findAll();
  }

  @Override
  public List<User> findDel(String code) {
    return userDao.findDel(code);
  }

  @Override
  public List<User> findUpdate(User user) {
    return userDao.findUpdate(user);
  }

  @Override
  public User findByid(String code) {
    return userDao.findByid(code);
  }

  @Override
  public List<User> findByAll(String region) {
    return userDao.findByAll(region);
  }

  @Override
  public int findAdd(User user) {
    return userDao.findAdd(user);
  }
}
